<?php

class Adept_Template_TagInfo {
    
    protected $alias;
    
    protected $attributes = array();
    protected $parameters = array();
    
    protected $class;
    
    protected $hasClosingTag = true;

    public function getAlias() 
    {
        return $this->alias;
    }
    
    public function setAlias($alias) 
    {
        $this->alias = $alias;
    }
    
    public function getAttributes() 
    {
        return $this->attributes;
    }
    
    public function setAttributes($attributes) 
    {
        $this->attributes = $attributes;
    }

    public function getClass() 
    {
        return $this->class;
    }
    
    public function setClass($class) 
    {
        $this->class = $class;
    }
    
    public function getHasClosingTag() 
    {
        return $this->hasClosingTag;
    }
    
    public function setHasClosingTag($hasClosingTag) 
    {
        $this->hasClosingTag = $hasClosingTag;
    }
    
    public function getParameter($name, $default = null) 
    {
        return isset($this->parameters[$name]) ? $this->parameters[$name] : $default;
    }
    
    public function setParameter($name, $parameter) 
    {
        $this->parameters[$name] = $parameter;
    }
    
    public function getParameters() 
    {
        return $this->parameters;
    }
    
    public function setParameters($parameters) 
    {
        $this->parameters = $parameters;
    }
    
}
